favorite_languages = {
    'jen': 'python',
    'sarah': 'c',
    'edward': 'ruby',
    'phil': 'python',
}

for name, language in favorite_languages.items():
    print(f"{name.title()}'s favorite language is {language.title()}.")

print("\n")

# 创建一个应该参与调查的名单
coders = ['phil', 'josh', 'edward', 'becca', 'sarah', 'matt', 'danielle']

# 使用循环遍历名单
for coder in coders:
    # 如果名字在字典中，打印一条消息，指出调查结果
    if coder in favorite_languages.keys():
        print(f"Thank you, {coder.title()}, for taking the poll.")
    # 如果名字不在字典中，打印一条消息，指出邀请他们参与调查
    else:
        print(f"{coder.title()}, please take our poll!")